﻿using System.Threading.Tasks;

namespace MiniAspNetCore
{
    /// <summary>
    /// 服务器接口
    /// </summary>
    public interface IServer
    {
        /// <summary>
        /// 开启服务
        /// </summary>
        /// <param name="handler">请求处理者</param>
        /// <returns></returns>
        Task StartAsync(RequestDelegate handler); 
    }
}
